<template>
    <div>
        <h1>异步加载测试</h1>
        <HelloWorldAsyncComp></HelloWorldAsyncComp>
    </div>
    <hr />

</template>
<script setup>
import { defineAsyncComponent, inject } from 'vue'
const app = inject('app');
app.component('HelloWorldAsyncComp', defineAsyncComponent(() =>
    import('./HelloWorldAsyncComp.vue')
))
</script>